package com.SMP.dao;

import com.SMP.model.Manager;
import com.SMP.model.ManagerExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ManagerMapper {
    long countByExample(ManagerExample example);

    int deleteByExample(ManagerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Manager record);

    int insertSelective(Manager record);

    List<Manager> selectByExample(ManagerExample example);
    
    List<Manager> selectAll();
    
    Manager selectByPrimaryKey(Integer id);
    
    Manager selectByMnangerName(String managername);
    
    Manager selectByNamePassword(String managername, String password);
    
    Manager selectByName(String managername);

    int updateByExampleSelective(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByExample(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);
}